import Vue from 'vue'
import App from './App'

// 挂载Vuex
import store from './store';  
Vue.prototype.$store = store;

import request from './utils/request.js'
Vue.prototype.$H = request;

// config配置文件
import config from './utils/config.js';  
Vue.prototype.$c = config;

// 公共方法
import fun from './utils/function.js';  
Vue.prototype.$f = fun;

// 挂载接口
import api from './api'
Vue.prototype.$api = api

//引入公共组件部分
import cosAvatar from './components/cos-media/cos-avatar.vue';
Vue.component('cos-avatar', cosAvatar);

import cosPostImageStyle from './components/cos-media/cos-post-image-style.vue';
Vue.component('cos-post-image-style', cosPostImageStyle);

// Qui公共JS
import Qui from './uni_modules/q-view/js_sdk/index.js';  
Vue.prototype.$q = Qui;

import uView from "uview-ui";
Vue.use(uView);

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	store,
	...App
})
app.$mount()